package com.xtoneict.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xtoneict.auth.entity.Role;

import java.util.List;

public interface IRoleService extends IService<Role> {
    public List<Role> selectRolesByUserId(Integer userId);

    public boolean insertRoleAndUser(Integer userId, List<Integer> roleIds);

    //删除某个用户对应的所有角色
    public boolean deleteUserAndRole(Integer userId);

}
